//
//  GYNetWorkTools.h
//  GoodLuck
//
//  Created by apple on 2018/2/26.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import <Foundation/Foundation.h>

/** 请求成功block */
typedef void (^SuccessCallBack)(NSDictionary *obj);

/** 请求失败的block */
typedef void(^ErrorCallBlck)(NSError *error);

/** 图片回调block */
//typedef void(^ImageCallBack)(UIImage *image);


@interface GYNetWorkTools : NSObject

#pragma mark -- 登陆注册

/**
 用户登入

 @param userName <#userName description#>
 @param password <#password description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserLogin:(NSString *)userName password:(NSString *)password success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 用户注册

 @param user_name 用户名
 @param password 密码
 @param password_confirm 确认密码
 @param province_id 省市ID
 @param city_id 城市ID
 @param area_id 区域ID
 @param phone <#phone description#>
 @param area_info <#area_info description#>
 @param sms_code <#sms_code description#>
 @param inviter_code <#inviter_code description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserRegister:(NSString *)user_name password:(NSString *)password password_confirm:(NSString *)password_confirm province_id:(NSString *)province_id city_id:(NSString *)city_id area_id:(NSString *)area_id phone:(NSString *)phone area_info:(NSString *)area_info sms_code:(NSString *)sms_code inviter_code:(NSString *)inviter_code success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 用户安全退出

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserSignOut:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取地区数据

 @param area_id <#area_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestLocation:(NSString *)area_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取注册短信验证码 

 @param mobile_phone <#mobile_phone description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestSMSCode:(NSString *)mobile_phone success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 用户反馈

 @param feedback <#feedback description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserFeedback:(NSString *)feedback success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 修改密码获取短信验证码

 @param phone <#mobile_phone description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserModifyPasswordSMSCode:(NSString *)phone success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack ;

/**
 用户修改密码

 @param phone <#phone description#>
 @param captcha <#captcha description#>
 @param password <#password description#>
 */
+ (void)requestUserModifyPassword:(NSString *)phone captcha:(NSString *)captcha password:(NSString *)password success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 修改用户昵称

 @param member_name 用户新的昵称
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestModfyUserName:(NSString *)member_name success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 解除手机号获取验证码

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeletePhoneSMS:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 解绑手机号

 @param auth_code 验证码
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeletePhone:(NSString *)auth_code success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 绑定手机号码获取验证码

 @param mobile 手机号
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestBindPhoneSMS:(NSString *)mobile success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 绑定新的手机号码

 @param auth_code 验证码
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestBindPhone:(NSString *)auth_code success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


#pragma mark -- 获取首页数据

/**
 获取首页数据

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestHomeData:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取商品详情

 @param goods_id <#goods_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestGoodsDetails:(NSString *)goods_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户添加商品收藏

 @param goods_id 商品id
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestAddGoodsfavorites:(NSString *)goods_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户取消商品收藏

 @param fav_id 商品ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+(void)requestCancelGoodsfavorites:(NSString *)fav_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取商品评价

 @param goods_id 商品ID
 @param curpage 页码
 @param page 每页条数
 @param type 1=好评,2=中评，3=差评，4=订单晒图，不传=全部评价
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestGoodsEvaluate:(NSString *)goods_id curpage:(NSString *)curpage page:(NSString *)page type:(NSString *)type success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取商品图文详情

 @param goods_id 商品ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestGoodsImageDetails:(NSString *)goods_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取热门搜索

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestHotSearch:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取首页专题数据

 @param special_id <#special_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestHomeSpecial:(NSString *)special_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取该商品在该地区的运费

 @param goods_id <#goods_id description#>
 @param area_id <#area_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestGoodsFreight:(NSString *)goods_id area_id:(NSString *)area_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

#pragma mark -- 店铺接口

/**
 获取店铺评分

 @param store_id <#store_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestStoreScoreInfo:(NSString *)store_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取店铺信息

 @param store_id <#store_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestStoreInfo:(NSString *)store_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户店铺收藏

 @param store_id 店铺ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestStoreFavorites:(NSString *)store_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户取消店铺收藏

 @param store_id 店铺ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestCancelStoreFavorites:(NSString *)store_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 店铺排行榜

 @param store_id <#store_id description#>
 @param ordertype <#ordertype description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestStoreGoodsRank:(NSString *)store_id ordertype:(NSString *)ordertype success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 店铺全部商品排序

 @param store_id 店铺ID
 @param curpage 当前页数
 @param page 每页数据条数
 @param stc_id 店铺商品分类ID
 @param keyword 搜素关键词
 @param key 排序字段 1发布时间 2价格 3销量 4收藏数
 @param order 排序顺序 1正序 2倒叙
 @param price_from 最低价格
 @param price_to 最高价格
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestStoreAllGoods:(NSString *)store_id curpage:(NSString *)curpage page:(NSString *)page stc_id:(NSString *)stc_id keyword:(NSString *)keyword key:(NSString *)key order:(NSString *)order price_from:(NSString *)price_from price_to:(NSString *)price_to success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取店铺新品

 @param store_id <#store_id description#>
 @param curpage <#curpage description#>
 @param page <#page description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestStoreNewGoods:(NSString *)store_id curpage:(NSString *)curpage page:(NSString *)page success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 店铺介绍

 @param store_id 店铺ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestStoreIntroduce:(NSString *)store_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


#pragma mark -- 分类

/**
 获取  大分类

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestLargeCategory:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 获取子分类

 @param gc_id <#gc_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestSubclassCategory:(NSString *)gc_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 商品列表

 @param gc_id <#gc_id description#>
 @param keyword <#keyword description#>
 @param page <#page description#>
 @param curpage <#curpage description#>
 @param key <#key description#>
 @param order <#order description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestGoodList:(NSString *)gc_id keyword:(NSString *)keyword page:(NSString *)page curpage:(NSString *)curpage key:(NSString *)key order:(NSString *)order success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


#pragma mark -- 我的

/**
 加载我的个人中心信息

 @param key <#key description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserInfo:(NSString *)key success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 用户商品收藏

 @param curpage <#curpage description#>
 @param page <#page description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserCommodityCollection:(NSString *)curpage page:(NSString *)page success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 用户店铺收藏

 @param curpage <#curpage description#>
 @param page <#page description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserShopCollection:(NSString *)curpage page:(NSString *)page success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 用户足迹

 @param curpage <#curpage description#>
 @param page <#page description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserFootprint:(NSString *)curpage page:(NSString *)page success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 清楚用户足迹

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestRemoveAllUserFootprint:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户申请成为会员

 @param vip_name <#vip_name description#>
 @param vip_phone <#vip_phone description#>
 @param vip_address <#vip_address description#>
 @param vip_inviter_code <#vip_inviter_code description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestApplyVIP:(NSString *)vip_name vip_phone:(NSString *)vip_phone vip_address:(NSString *)vip_address vip_inviter_code:(NSString *)vip_inviter_code success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户的收货地址列表

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserAddress:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 增加一个用户的收货地址

 @param true_name <#true_name description#>
 @param mob_phone <#mob_phone description#>
 @param city_id <#city_id description#>
 @param area_id <#area_id description#>
 @param address <#address description#>
 @param area_info <#area_info description#>
 @param is_default <#is_default description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestAddUserAddress:(NSString *)true_name mob_phone:(NSString *)mob_phone city_id:(NSString *)city_id area_id:(NSString *)area_id address:(NSString *)address area_info:(NSString *)area_info is_default:(NSString *)is_default success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 删除一个用户的收货地址

 @param address_id <#address_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeleteUserAddress:(NSString *)address_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 修改更新用户的收货地址

 @param address_id <#address_id description#>
 @param true_name <#true_name description#>
 @param mob_phone <#mob_phone description#>
 @param city_id <#city_id description#>
 @param area_id <#area_id description#>
 @param address <#address description#>
 @param area_info <#area_info description#>
 @param is_default <#is_default description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUpdateUserAddress:(NSString *)address_id true_name:(NSString *)true_name mob_phone:(NSString *)mob_phone city_id:(NSString *)city_id area_id:(NSString *)area_id address:(NSString *)address area_info:(NSString *)area_info is_default:(NSString *)is_default success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户的财产

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUserProperty:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 用户的财产  积分明细

 @param curpage <#curpage description#>
 @param page <#page description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestPointsDetails:(NSString *)curpage page:(NSString *)page success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;
/**
 系统消息列表

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestSystemMessage:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
修改用户头像

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestModfyUserHeadImage:(NSData *)imageData success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 设置应用内支付密码  获取短信验证码

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestPayPwdGetVerCode:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 设置应用内支付密码  验证短信验证码

 @param auth_code <#auth_code description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestVerPayPwdVerCode:(NSString *)auth_code success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 设置支付密码

 @param password 支付密码
 @param password1 确认支付密码
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestPayPwd:(NSString *)password password1:(NSString *)password1 success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;
#pragma mark -- 订单

/**
 确认订单信息

 @param ifcart <#ifcart description#>
 @param cart_id <#cart_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestConfirmOrderInfo:(NSString *)ifcart cart_id:(NSString *)cart_id address_id:(NSString *)address_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 订单列表

 @param state_type 低订单类型
 @param order_key 模糊搜索 关坚词
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestOrderList:(NSString *)state_type order_key:(NSString *)order_key page:(NSString *)page curpage:(NSString *)curpage success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 删除订单

 @param order_id 订单id
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeleteOrder:(NSString *)order_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 取消订单

 @param order_id 订单ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestCancelOrder:(NSString *)order_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 确认收货

 @param order_id <#order_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestConfirmationReceipt:(NSString *)order_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 订单详情

 @param order_id <#order_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestOrderDetails:(NSString *)order_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 全额订单退款信息

 @param order_id 订单号
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestOrderALLRefundDetailInfo:(NSString *)order_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 部分退款订单信息

 @param order_id <#order_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestOrderRefundOrderDetailsInfo:(NSString *)order_id order_goods_id:(NSString *)order_goods_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 上传退款图片

 @param imageData <#imageData description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUploadRefundImageData:(NSData *)imageData success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 提交全额退款

 @param order_id <#order_id description#>
 @param buyer_message <#buyer_message description#>
 @param refund_pic <#refund_pic description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestRefundAllMoney:(NSString *)order_id buyer_message:(NSString *)buyer_message refund_pic:(NSArray *)refund_pic success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 提交部分退款

 @param order_id <#order_id description#>
 @param order_goods_id <#order_goods_id description#>
 @param refund_type <#refund_type description#>
 @param reason_id <#reason_id description#>
 @param refund_amount <#refund_amount description#>
 @param goods_num <#goods_num description#>
 @param buyer_message <#buyer_message description#>
 @param refund_pic <#refund_pic description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeliverGoodsOrderRefund:(NSString *)order_id order_goods_id:(NSString *)order_goods_id refund_type:(NSString *)refund_type reason_id:(NSString *)reason_id refund_amount:(NSString *)refund_amount goods_num:(NSString *)goods_num buyer_message:(NSString *)buyer_message refund_pic:(NSArray *)refund_pic success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


/**
 退款商品列表

 @param curpage <#curpage description#>
 @param page <#page description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestRefundList:(NSString *)curpage page:(NSString *)page success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 已发货  退款  退货列表

 @param curpage <#curpage description#>
 @param page <#page description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestReturnGoodsList:(NSString *)curpage page:(NSString *)page success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 订单评价时-订单详细信息

 @param order_id <#order_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestOrderEvaluateDetailsInfo:(NSString *)order_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 评价订单晒图

 @param category_id <#category_id description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestOrderEvaluateUploadImage:(NSString *)category_id imageData:(NSData *)data success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 提交订单评价

 @param paramDic <#paramDic description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestSubmitOrderEvaluate:(NSMutableDictionary *)paramDic order_id:(NSString *)order_id store_desccredit:(NSString *)store_desccredit store_servicecredit:(NSString *)store_servicecredit store_deliverycredit:(NSString *)store_deliverycredit success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 请求用户购物车列表

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestShopingCartList:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 请求发票列表信息

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestInvoiceList:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 增加一条发票信息

 @param inv_title_select 发票抬头类型  公司  个人
 @param inv_title 发票抬头
 @param inv_content 发票内容
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestAddInvoice:(NSString *)inv_title_select inv_title:(NSString *)inv_title inv_content:(NSString *)inv_content inv_code:(NSString *)inv_code success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 删除一条发票信息

 @param inv_id 发票的ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeleteInvoicr:(NSString *)inv_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 提交订单信息

 @param ifcart 1--购物车下单时才传
 @param cart_id 购物车下单时传购物车商品ID（多个以逗号隔开），直接下单传商品ID）|数量  列：100671|1
 @param address_id 收货地址ID
 @param vat_hash 1MRdDtLd0rQPZ4A3T47wCuWAP9jzNMQL5er
 @param offpay_hash <#offpay_hash description#>
 @param offpay_hash_batch <#offpay_hash_batch description#>
 @param pay_name online
 @param invoice_id 发票信息ID
 @param pd_pay 是否预存款支付
 @param password 支付密码
 @param fcode f码
 @param rcb_pay <#rcb_pay description#>
 @param rpt 可选--使用充值卡支付
 @param points_orderprice 使用积分支付--使用积分数量
 @param pay_message 订单备注
 @param is_needspay 是否是不需要支付
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestSubOrder:(NSString *)ifcart cart_id:(NSString *)cart_id address_id:(NSString *)address_id vat_hash:(NSString *)vat_hash offpay_hash:(NSString *)offpay_hash offpay_hash_batch:(NSString *)offpay_hash_batch pay_name:(NSString *)pay_name invoice_id:(NSString *)invoice_id pd_pay:(NSString *)pd_pay password:(NSString *)password fcode:(NSString *)fcode rcb_pay:(NSString *)rcb_pay rpt:(NSString *)rpt points_orderprice:(NSString *)points_orderprice pay_message:(NSString *)pay_message is_needspay:(BOOL)is_needspay success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 商品添加购物车

 @param goods_id 商品ID
 @param quantity <#quantity description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestShopingCartAddGoods:(NSString *)goods_id quantity:(NSString *)quantity success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 查询用户购物车商品数量

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestQueryShopingCartGoodsNum:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 修改购物车商品数量

 @param cart_id <#cart_id description#>
 @param quantity <#quantity description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestUpdateShopingCartGoodsNum:(NSString *)cart_id quantity:(NSString *)quantity success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 删除购物车的商品数量

 @param cart_id 购物车ID
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeleteShopingCartGoods:(NSString *)cart_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 请求发票内容清单

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestInvoiceContentList:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 验证用户有没有设置过密码

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestVerPayPwd:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 验证用户输入的支付密码正不正确

 @param password <#password description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestcheckPassword:(NSString *)password success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 积分抵扣到0元订单支付

 @param pay_sn <#pay_sn description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)reqeuestPayNeedspay:(NSString *)pay_sn success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 删除退货/退款订单完成的订单

 @param order_id 订单号
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestDeleteRefundOrder:(NSString *)refund_id success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

#pragma mark -- 支付接口

/**
 请求支付方式

 @param pay_sn <#pay_sn description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestPayMethodInfo:(NSString *)pay_sn success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 发起支付宝支付

 @param pay_sn 支付单号
 @param payment_code <#payment_code description#>
*/

+ (void)requestLaunchPay:(NSString *)pay_sn payment_code:(NSString *)payment_code success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 支付宝支付完成是通知

 @param out_trade_no <#out_trade_no description#>
 @param trade_no <#trade_no description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestZhifubaoPaySuccess:(NSString *)out_trade_no trade_no:(NSString *)trade_no uccess:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 发起微信支付

 @param pay_sn <#pay_sn description#>
 @param payment_code <#payment_code description#>
 @param wxpay_appid <#wxpay_appid description#>
 @param wxpay_mch_id <#wxpay_mch_id description#>
 @param wxpay_key <#wxpay_key description#>
 @param notifyUrl <#notifyUrl description#>
 @param successCallBack <#payCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestWeiXinPay:(NSString *)pay_sn payment_code:(NSString *)payment_code wxpay_appid:(NSString *)wxpay_appid wxpay_mch_id:(NSString *)wxpay_mch_id wxpay_key:(NSString *)wxpay_key notifyUrl:(NSString *)notifyUrl success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

/**
 微信支付成功后发送通知

 @param out_trade_no <#out_trade_no description#>
 @param payment_code <#payment_code description#>
 @param wxpay_appid <#wxpay_appid description#>
 @param wxpay_mch_id <#wxpay_mch_id description#>
 @param wxpay_key <#wxpay_key description#>
 @param notifyUrl <#notifyUrl description#>
 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestWeiXinPaySuccess:(NSString *)out_trade_no payment_code:(NSString *)payment_code wxpay_appid:(NSString *)wxpay_appid wxpay_mch_id:(NSString *)wxpay_mch_id wxpay_key:(NSString *)wxpay_key notifyUrl:(NSString *)notifyUrl success:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;



#pragma mark --  引导页

/**
 请求用户

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestWelcomeInfo:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;


#pragma mark -- 活动

/**
 请求活动页面的信息

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestActivityInfo:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;

#pragma mark --  APP版本

/**
 获取APP当前的版本

 @param successCallBack <#successCallBack description#>
 @param errorCallBack <#errorCallBack description#>
 */
+ (void)requestAppVesion:(SuccessCallBack)successCallBack error:(ErrorCallBlck)errorCallBack;







@end
